import ftclient
import time
from sql.sqlbuilder import SQL
from authorization.clientlogin import ClientLogin
import urllib2

token = ClientLogin().authorize('osu.map@gmail.com', 'dlzosumap')
ft_client = ftclient.ClientLoginFTClient(token)

sql = "select rowid from 478653 where rowid = '1401'"
sql = "select rowid from 478653"
sql = SQL().insert(478653, {'Text': 'something'})
sql = "update 478653 set Text = 'soemthingslsd' where rowid = '1401'"
sql = "delete from 478653 where rowid = '1401'"
sql = "select abc from 478653 where rowid = '1401'"
sql = "select ID from %s order by ID DESC LIMIT 1" % 492037
sql = "select * from 491750 ORDER BY report_test_no ASC OFFSET 0 LIMIT 50 "
sql = "select * from 463550"
print ft_client.query(sql)



